<?php
use think\Route;
Route::get('/',function(){
    return 'Hello,world!';
});
Route::get('user/:id','index/User/read');//查
Route::post('user','index/User/add'); //增
Route::put('user/:id','index/User/update'); //改
Route::delete('user/:id','index/User/delete'); //删
Route::get('user','index/User/login');        // 登录